#root {
  /* max-width: 1280px; */
  margin: 0 auto;
  /* padding: 2rem; */
  text-align: center;
}

.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}

.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}

.logo.react:hover {
  filter: drop-shadow(0 0 2em #61dafbaa);
}

@keyframes logo-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  a:nth-of-type(2) .logo {
    animation: logo-spin infinite 20s linear;
  }
}

.card {
  padding: 2em;
}

.read-the-docs {
  color: #888;
}

/* 窗口容器样式 */
.window-container {
  width: 100%;
  height: 100vh;
  /* margin: 50px auto; */
  /* box-shadow: 0 0 15px rgba(0, 0, 0, 0.2); */
  overflow: hidden;
  background-color: #f5f5f5;
  /* border: 1px solid #e0e0e0; */
  display: flex;
  flex-direction: column;
}

/* 标题栏样式 */
.title-bar {
  background-color: #ffffff;
  height: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
  user-select: none;
}

.title-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 12px;
}

.title-bar-right {
  display: flex;
  margin: 0;
  height: 48px;
}

.window-title {
  font-size: 12px;
  font-weight: 500;
  color: #333333;
}

/* 窗口按钮样式 */
.window-button {
  width: 48px;
  height: 28px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 12px;
  padding: 0;
  border-radius: 0;
}

.window-button:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.window-button:focus {
  outline: none;
}

.window-button:last-child:hover {
  background-color: rgb(255, 0, 0);
}

/* 主内容区样式 */
.main-content {
  flex: 1;
  display: flex;
  height: calc(100% - 32px);
}

/* 侧边栏样式 */
.sidebar {
  width: 48px;
  background-color: #ffffff;
  border-right: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
  gap: 12px;
  transition: width 0.1s ease;
}

.sidebar.expanded {
  width: 120px;
}

.sidebar-item {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #666666;
  position: relative;
  margin-bottom: 8px;
  user-select: none;
}

.sidebar.expanded .sidebar-item {
  width: 100px;
  justify-content: flex-start;
  padding-left: 12px;
  gap: 8px;
}

.sidebar-item:hover {
  background-color: #f0f0f0;
  color: #0078d7;
}

.sidebar-item.active {
  background-color: #e6f2ff;
  color: #0078d7;
}

/* 菜单展开/收起项的特殊样式 */
.sidebar-item.menu-toggle {
  align-self: flex-start;
  margin-left: 6px;
}

.sidebar.expanded .sidebar-item.menu-toggle {
  margin-left: 0;
}

.sidebar-item-label {
  display: none;
  font-size: 14px;
}

.sidebar.expanded .sidebar-item-label {
  display: block;
}

/* 内容区域样式 */
.content-area {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #fafafa;
}

.content-area h1 {
  font-size: 24px;
  color: #333333;
  margin-bottom: 20px;
  font-weight: 500;
}

.placeholder-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999999;
}

/* 确保图标显示正确 */
svg {
  display: block;
}

